package com.elong.spring.context;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.elong.spring.reflect.Car;

@Configuration
public class Beans {

    
    @Bean(name = "car")
    public Car buildCar(){
	Car car = new Car();
	car.setBrand("红旗CA72");
	car.setMaxSpeed(200);
	car.setColor("黑色");
	return car;
    }
}
